{% load static %}

{% block content %}
    <div class = "container">

        <div class = "row">
            <div class = "col-sm-12">
                <div class = "card shadow">
                    <div class = "card-header text-center text-light bg-dark">
                        <h3 class = "card-title ">增加设备类型</h3>
                    </div>
                    <div class = "row">
                        <div class = "col-md-4"></div>
                        <div class = "col-md-4">
                            <div class = "card-body">
                                <form action = "{% url 'add_devicetype' %}" method = "post">
                                    {% csrf_token %}
                                    {{ dt_form.as_p }}
                                    <div class = "text-center">
                                        <button type = "submit" name = "c-button" class = "btn btn-primary">提交
                                        </button>
                                    </div>
                                </form>
                            </div>
                        </div>
                        <div class = "col-md-4"></div>

                    </div>

                </div>
            </div>
        </div>
    </div>



{% endblock %}